all: tmptest

CPPFLAGS = -std=c++11 -g -O2
LIBS = -lpthread

%.o : %.cpp
	g++ $(CPPFLAGS) -c $< -o $@


tmptest: tmp_main.o
	g++ $^ -o tmptest $(LIBS)


.PHONY: clean
clean:
	rm -rf tmptest *.o